refactored UI methods into GameEngine!