Fixed hitWall code. Still gets stuck sometimes.