Rewrote shaking in changeColor
Rewrote changeColor for speedup purposes
Fixed a bug which caused a core dump