add mine building which can only be built on minerals
fix bug calculating resources when rewinding before mine path is made
use closest selected unit to make buildings