How to make the drawing of sprite change colour


I changed the code, and it still crashed with the color change buttons. Any idea how to make them not crash, but instead change the drawing color for a sprite?