creation of Player class