this is the engine.py with the gui class in it.