Implemented calcNewAllowedMoves().