This program automatically generates mazes. Press the flag to generate one. Every maze has a single solution. Got the basic information about this algorithm from good old Wikipedia.