Tried to solve maze, cowboy gets stuck