functional but simple guessing game

Great use of an array here!