Fixed a bug in taskmanager and added AI for constructing buildings