Solved P08 but very ugly solution. Retrying...
Didn't really made P08 nicer but still it's easier to understand now
solve P09
Complete P10