tests num_of_neighbors, fixes bugs in world.rb