[world gen] changes to getNextEntity, it is currently not assigning faction correctly to villagers and building, not sure what the problem is, troubleshooting