Fix getPieceKeyOnBoard