Improved task system

improved the task system and made the village class. System is due to
change to allow of seperate buildings instead of one big village. (maybe
buildings inside the village?)