Fix crash when moving pawn two squares
Construct the QList before using it in the range based loop
BUG: 398722 Differential Revision: https://phabricator.kde.org/D15555