battleships.rb refactored and works now except does not meet win condition correctly