Batlteship in Ruby