Added Functions

I added a function for if the user gets the question wrong or right, and
I tried to develop Mercury function but I'm not sure if it is right.