Command line battleship game in Ruby