Game Thread implementation