Changed functions in player to correct player type.