make it so the player doesn't randomly go upwards when moving forward