Homework #1 number guess game

This program did fulfill all the specifications and some of the extra credit. It does allow you to play again even if you guess wrong but doesn't quite work right if you try to play again after winning. I think it has something to do with the order of the nested if statements. I fell asleep before I finished fixing it. It does allow for user inputed max numbers for guessing and is generally well functioning (except the playing again after a win). 

Eh. I don't think there's much point in putting this in a method - it doesn't really save you anything. You could equally replace the method call (is_right?(x,y)) with x == y.