perfect win from $ALGO