Added code for handling all variations of possible combinations of
Piece and Cell.