pause and resume functions added, playing with colors