Looking for bugs in the code | Painting