This is a simple Makey Makey controlled avoidance game that we teach in eduFAB trainings. Look at the code and make it your own for a great introduction to programming lesson.
Liz Whitewolf is the Founding Director for eduFAB, a nonprofit organization for providing resources and training for schools to support digital makerspaces. Check out our website at www.eduFAB.org