classic snack game written in python