Tried to implement reset button, but found out that paint method cannot be called multiple times inside actionlistener. Thus reset button removed. Color gets brighter automatically when program runs.