added logical functions; creating game first via text and then interfacing with ui (pyqt) later