Maze generation and solving algorithm just for fun.