First working version without collision detection.