In your last do-while loop, when do you determine to stop?
while(continuePlay == 1);, when is that changed?
Yelnatz is right - if continuePlay is equal to 1 at the start of the loop, then the loop will run forever, because continuePlay will never change from being equal to 1.
Also, why are you defining your functions inside the body of your main function? That's not the usual way of doing things.