adding class functions to player
fixing conflict