Add state transformer for looping CHIP8 state inside of IO

Also, restructure sources