I this what you mean DanPost?
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.Color;
/**
* Write a description of class starWorld here.
*
* @author (Richard Appiah)
* @version (Version 1.0)
*/
public class CircleWorld extends World
{
/**
* Constructor for objects of class starWorld.
*
*/
public CircleWorld(Robot inRobot)
{
super(700, 700, 1, true); // Create a new world with 700x700 cells with a cell size of 1x1 pixels.
setPaintOrder ( Robot.class, Smoke.class );
// if (inRobot == null) counter = new Counter();
//else counter = inRobot.getCounter();
//addObject (counter, 100, 678);
//if (inRobot == null) healthBar = new HealthBar ("Robot Health", "", 100, 100);
//else healthBar = inRobot.getHealthBar();
//addObject(healthBar, 600, 678);
if (inRobot == null) robot = new Robot(counter, healthBar);
else robot = inRobot;
addObject(robot, getWidth() / 2, getHeight() - 90);
// if (inRobot == null) robot = new Robot(counter, healthBar);
else robot = inRobot;
addObject(robot, getWidth() / 2, getHeight() - 90);
paddle = new Paddle(robot); // set the Paddle to the world
addObject ( paddle, getWidth() / 2, getHeight() - 55); //add the paddle object to th world
}

