Fixed a bug: you can get stuck on the back and left walls