Head first Java battleship game