created pieces classes and substituted piece encodings on board for actual pieces