Updated first post with updated script that will display number of try required to get the correct answer. It is ok if you don't understand that part, just skip it.