mario.c, make mario pass valgrind