public void draw(Graphics surface) {
		// Draw the object
		surface.setColor(color);
		surface.fillRect(x - SIZE / 2, y - SIZE / 2, SIZE, SIZE);
		surface.setColor(Color.BLACK);
		((Graphics2D) surface).setStroke(new BasicStroke(3.0f));
		surface.drawRect(x - SIZE / 2, y - SIZE / 2, SIZE, SIZE);

		// Move the center of the object each time we draw it
		x += xDirection;
		y += yDirection;

		// If we have hit the edge and are moving in the wrong direction,
		// reverse direction
		// We check the direction because if a box is placed near the wall, we
		// would get "stuck"
		// rather than moving in the right direction
		if ((x - SIZE / 2 <= 0 && xDirection < 0)
				|| (x + SIZE / 2 >= SimpleDraw.WIDTH && xDirection > 0)) {
			xDirection = -xDirection;
		}
		if ((y - SIZE / 2 <= 0 && yDirection < 0)
				|| (y + SIZE / 2 >= SimpleDraw.HEIGHT && yDirection > 0)) {
			yDirection = -yDirection;
		}
	}