Fix instructions memory leak
Implement passing of instructions to subsiquent ticks
Rerun ticks if dependant instructions are generated