code from HFJS

This is the code in the battleship game from HFJS