Don't let the player exceed the bounds of the map when moving.