Battleships as console application in Java