Finished more advanced version of colorFlash