PatternPlayer become a class