Spatial colonization game in Javascript