starting a major refactoring of battleships.rb to generalize ships placement