Update and fixes

fixed toStr
renamed win? to checkWin
refined main loop