updated demo to version 0.2.5: collision detection