A simple battleship game in Java