Automatic maze generation now working