The question is, do you need all those variables, or can you use arrays?
I.E. are your variables all different, like:
PieceMoving
NumberOfPeices
or are there some related variables, like:
Piece1Moving
Piece2Moving
Piece3Moving
etc.
The first case is fine, the second is inefficient.