Do you have a .lud file?, maybe someone can help then.
and
Did you check with the 'Test Ludeme' dialog what the (count Pieces) line really creates as result in various cases?
and
Did you check with the 'Test Ludeme' dialog what the (count Pieces) line really creates as result in various cases?