Fixed the village generation method.