an upgrade of battleships.rb - several new features implemented, code cleaner