Increased mission end accuracy

It whould now detect mission end immediately. We need somebody with an older computer than mine to make sure it doesn't cause FPS drop.