added onclick to checkGuesses