Added constraints to keep the player inside the viewport