Wow, you've implemented cool systems here for buildings and units. I was a little confused while capturing a building: when I enabled "capturing state", and clicked on the building, but almost all of my units disappeard in the building that was on their way (and was already captures). But overall I liked it, great job!