Battleship game variant done in Java