The Chocolate Bar Game and Two-Pile Nim Are Equivalent