Added variable to count turns. Also changed "for" loop to "while".
Game will now stop when one of the agents will win.