Thomas wins drama-filled CJ Cup