crashing into the railing , he spun around so he was facing away from his opponents , grabbed the rail with his hands , swung his legs and body up with ferocious speed , and ended up doing a handstand on the rail .