minotaur changes direction when hitting a wall