Rendering works

todo:
- moving
- exit criteria for rendering