refactored socket and gamelogic works for self
server working from startscreen