change the painting variable to make a painting if the painting variable is 6 ther wil be an animation