First working 2D sim