Fixes issue #1 by stopping the player from sliding behind objects