taking advantage of pygame's set_timer()