Fixed it so the player cannot move offscreen