Fix number of guess attempts feed by embedding counting var within DO WHILE

Also fixed version number