Ok i am not doing this pain again and i was playing this in windowed mode so sometimes i clicked offscreen and thats why the game randomly pauses