completed predicting heads or tails