suddenly there were barriers such as oceans and mountain ranges that restricted the ability of organisms to migrate , and the few that managed to do so played a large role in shaping the evolution of species on islands and in geographically isolated areas .