added more functionality to commandqueue and controller classes.

- Fixes buildings.
- Fixes Resource Buildings.
- Changed building to extend unit instead of GameObject