Edit This Code:
See Result »
The red square will stop falling when it hits the floor.
Result: