Remove the ';' (semi-colon) after the while

Code:
 while( lives > 0);
should be

Code:
 while( lives > 0)