first attempt at hw9, which involves making a game through processing