Added better 1 recognition, it will be able to continue when it wins, and the speed increase was found to be a cause of using the robot.getPixelColor method by accident, which takes a much longer time than accessing the buffered screen's pixels.