Implemented lag compensation, so the game now runs at the same speed regardless of framerate