edited maze.c