socket stuff
merged game logic