cows and bulls game on shell terminal in python