Trying to fix update function . Fixed FPS counter