few things everyone misses on MCCODES is not in the the attack script
1 = stalemate so fight dont go on forever if both are same stats
2 = back button when pressed should put user back in fight or even if they try to change the URL or even when attempting to logout of game when in a fight..
3 = An escape button when attacking if you think your getting battered (usually with an outcome of hosp or successful escape)