fix up flex and now ready to add maze generation.