this local to push and pop code about maze game.