Remove unused constants.
Move decoding logic into Player class.