Update Mastermind.cpp

Changed code so it checked when they guessed the correct combination it would end the game and not keep going until they finished their 10 guesses.