color detection and saving images into a folder during a match finalized