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