Potential bug, the gun doesn't seem to want to go against the left wall.
Too hard for me. Neat sorting puzzle tho.