Made clock for game loop