changed player constructor