added multiple classes and player functionality