press space to swap the two bars you're touching and you halves, WASD to move press Q to witch which half you're controlling if you swap while touching two bars, it breaks
if it was a real attack, only blue attacks would hurt the blue half, cyan attacks would hurt the cyan half, and the attack would end once the bars have been sorted in acending order, left to right. Credits to NorthWestWind's "The World Revolving but it's a (real) sorting algorithm" youtube video for the idea