implemented Player class