finalisation of first implementation of guessing games;
not entirely clear if it operates correctly (more testing/comparing
performance needed)