Added a button to generate a maze on the main thread

Added a button to generate a maze on the main thread