ignore obj and bin folder
change the way of producing random number
flush after printing "turn i"