Now only renders if the window is not minimized

Still simulates the world, but no drawing is done