Update BlockMachine

Edited the class directly on github from browser, expect syntax errors