Fixed bug where player could get stuck on walls