Server program for the battleship game