Added time delta compensation, not fully working

Server still has trouble with time delta.