Magnussen thought it was 'game over' during Singapore GP