A battleship game implemented in Java