fixed potential overage of STONE_COUNT