made some changes in Player class