implementation for routine has_unfinished_game and tests