Added intelligence and made some parts optional for humanoids