this can successfully complete the maze