how to program apple catching game