Changed the criteria for exiting the while loop.

Since the prince only has 30 days to get the princess, the exit criteria has been changed from getting all "no"s in the list to having tries = 30