created amazing function "checkanswo" that determines whether the user-inputted word is a solution.