horrible wave function collapse implementation | ScratchStats