public bool update() { x = x + xVelocity; y = y + yVelocity; rect = new Rectangle(x, y, width, height); if (barrier.Collides(rect)) { return(false); } return(true); }