added socket communication of two player