public Main(int width, int height, int ticksPerSecond, ArrayList<State> states) {
		this.width = width;
		this.height = height;
		Assets.loadAssets();
		this.keyboardHandler = new KeyboardHandler(this);
		this.mouseHandler = new MouseHandler(this);
		this.canvas = new RenderEngine(this);		
		this.ticksPerSecond = ticksPerSecond;
		addStatesAsCurrent(states);
	}