fixed crash when trying to draw 0 pieces in box