character randomizer and bugfixes