Fix bug in Eightpieces rules (division by 0)