Fixed camera movement when reaching end of map.