added socket server logic + basic socket opening in game