public synchronized int getFramePosition(int x, int y) {
		if (getCorner(TOP | LEFT | CORNER).contains(x,y)) {
			JShot.debug("TOP | LEFT | CORNER");
			return TOP | LEFT | CORNER;
		} else if (getCorner(TOP | RIGHT | CORNER).contains(x, y)) {
			JShot.debug("TOP | RIGHT | CORNER");
			return TOP | RIGHT | CORNER;
		} else if (getCorner(BOTTOM | RIGHT | CORNER).contains(x, y)) {
			JShot.debug("BOTTOM | RIGHT | CORNER");
			return BOTTOM | RIGHT | CORNER;
		} else if (getCorner(BOTTOM | LEFT | CORNER).contains(x, y)) {
			JShot.debug("BOTTOM | LEFT | CORNER");
			return BOTTOM | LEFT | CORNER;
		} else if (getCorner(TOP).contains(x, y)) {
			JShot.debug("TOP");
			return TOP;
		} else if (getCorner(BOTTOM).contains(x, y)) {
			JShot.debug("BOTTOM");
			return BOTTOM;
		} else if (getCorner(LEFT).contains(x, y)) {
			JShot.debug("LEFT");
			return LEFT;
		} else if (getCorner(RIGHT).contains(x, y)) {
			JShot.debug("RIGHT");
			return RIGHT;
		}
		// should not happen 
		return -1;
	}