removed dead code
fixed bug where `playedclasses` might become a sparse array
Merge branch 'refactoring'