working version of battleships for irb