Added isValid fcn to Player class