Made game counter a global variable