The simple geometry of perfect information games