Codegolf challenge! This was inspired by a post on Bad School IT. You have to make it more efficient and have less blocks than it currently does, while having the same functionality. All variables and lists must be initialized. GLHF
48 blocks. The version I have on Snap! has 26 blocks (without custom blocks) and 21 blocks (w/ custom blocks)