public void AddObstacle(Obstacle obstacle) // add an obstacle to be checked by the engine { obstacles.Add(obstacle); }