A game of battleship with the help of sockets