Added z-rotation to Rendering Loop