How about this?
void main(int initround, monster foe, string url) {
round = initround;
nowfightingonstageone = foe; // make the monster global for intheclear()
handle_grin(foe,url);
if (intheclear() && contains_text(url,"You get the jump"))
{
url = class_action(url);
}
else...