added character races, hardened code