Added interface for gui to program game logic againstf