Modified OpenCV Puzzle Game