Final version of mario.c