Lightbot

Find the file on the Handout drive or play online at http://lightbot.com/flash.html

This code won't fit

puzzle 1 code

how can it be broken into functions or procedures?

What is the most efficient solution to this challenge

puzzle 2