public void AddObstacle(int x, int y) { Point location = new Point(x, y); var obstacle = new Obstacle(location); Rover.AddObstacle(obstacle); }