A simple battleship game written in Java