changed signature of localMoves!