exposes canSwap function
refactor rename
added getBoardChainLengthMap function