chapter8: finished up the battleship game