Added goals and collision detection.