Do not allow the player to go off canvas