Program now works properly; games now finish.