Fixed going outside the map.
Merge branch 'pacman' of https://github.com/iburinoc/LifeSim into pacman