combined the demo game with the gamethread