better socket communication system for 2 players. new class for handling sockets