A Better Solution to the Byzantine Generals Problem