1P battleship game vs computer built in java