Added collision detection and landing criteria