Perfect game in ruby