Stop the character when he encounters a wall [Solved]