private boolean solved() {
if (index == -1) {
return false;
}
final RSInterface solver = interfaces.get(CHEST_INTERFACE_PARENT);
if (solver != null && solver.isValid()) {
final RSComponent container = solver.getComponent(CHEST_INTERFACE_CENTER);
final Rectangle centerArea = container.getArea();
final Point p1 = solver.getComponent(INTERFACE_SOLVE_IDS[index][0]).getCenter();
final Point p2 = solver.getComponent(INTERFACE_SOLVE_IDS[index][1]).getCenter();
final Point p3 = solver.getComponent(INTERFACE_SOLVE_IDS[index][2]).getCenter();
return centerArea.contains(p1) && centerArea.contains(p2) && centerArea.contains(p3);
}
return false;
}