Fixed a bug where the player could get stuck in the top of the trench.