Lock player's movement horizontally