The flags point to the nearest piece. If there is only 2 pieces left they will point to them even if they are far ^^
Thank you so much for playin!