@kandid yes, somehow the paintcomponent does some parallel computing, so the values called already changed or something. I think I fixed that one already by just putting shape[1]... in line 350.
In the beginning running into the sphere made it turn red without finishing the level...