player base class