Bug fixed: only iterate when there are pawns