completed mario.c