Insets in = frame.getInsets();
frame.getGraphics().drawImage(output, in.left, in.top, null);
if (cnt == 90 && robot != null) {
// area where we blitted to should be either white or green
Point p = frame.getLocationOnScreen();
p.move(in.left+10, in.top+10);
BufferedImage bi =
robot.createScreenCapture(
new Rectangle(p.x, p.y, IMAGE_W/2, IMAGE_H/2));
int accepted1[] = { Color.white.getRGB(), Color.green.getRGB()};
checkBI(bi, accepted1);