Craigv, it looks like the "illegal start of expression" is because of a typo. should beDon't use "!=destroyed", use "!destroyed".
if (!=destroyed && getOneIntersectingObject(ball.class) != null) destroyed = true;
if (!destroyed && getOneIntersectingObject(ball.class) != null) destroyed = true;