theoretically ported over the 4x4 grid code to queue