Simulates a mouse going finding the exit in a maze, using a stack based algorithm.