linked GUI to main game