add class and fix player attr and add randName