passing self as a parameter of onEnded (was missing and required to check current player on whyd's fallback)
removed useless passing of playerClass in event handler check