changed player object to player pointer