Head or tail game with hash code result