Harvard cs50 problem set 1: mario.c & greedy.c