Added the logic for a correct guess along with a prompt output.