move Player class to common