Added some logic to the mapping code, player can officially not exit the bounds of the map anymore