Yes it's possible for it to be the CDI but I would always check this last because it's hard to diagnose and can be expensive to replace.
Even still when it has a spark and everything else is good the bike should at least give a sign of life.
i finally got the CDI tested today and they said its faulty.however i didnt believe them as they are bunch of screwed ppl,so i took it to aeronautical electronic guys and asked them to have a look on it.
i did the compression test myself today,however it was headache to find adapter for it.anyways,i did some dry and wet test.my GOD it was nothing not even 100 Kpa.then i added some oil and cranked it for few second and it went up to 700 on one and the others 450 and 500 more or less.
with regards to what i have done on the head and valves plus the new aluminum gasket i put,it should be the rings or pistons,however i checked the barrels and they were fine and smooth and free of any single scratch, also my mechanic said that the pistons and rings look fine.
now whats next?