adding class Player working with json files