Correction of bug : End of the world

- Correction of a segfault when going out of the map. I recommend
placing wall at these places.