test code from battleship project