Battle for Tripoli becomes a sandbox for outside powers