playerClass redone, functions added