character cannot move outside the map