Fixed compiler warnings, templatized Rect and modified core game loop to be based upon delta time