public Engine(IRenderer renderer, IUserInterface userInterface)
{
this.renderer = renderer;
this.userInterface = userInterface;
this.allObjects = new List<GameObject>();
this.movingObjects = new List<MovingObject>();
this.staticObjects = new List<GameObject>();
}