add sockets functionality for 2 players