Add GameTimer function, clear up code.