Source: https://web.stanford.edu/~niederle/GuessingGames.pdf