Adding automatic GamePhase detection.

This should solve the infamous UNKNOWN ORIGIN problem, especially in 
MCPC++.