using position in generateMoveList