Maze generation c program