keeps the cursor inside the game