Final guess.rb for homework tonight

I felt like I was making good progress but I have to call it quits for tonight. Made it through level two and was starting to work out the loops. Seems like it could be streamlined. But I'm going to get some sleep.