fix player from being able to move off the map