fixed a bug with queue running out of qems to add. made swapping only work with adjacent gems