Added terminal state check to avoid flooding the console with untrue depth values. Always wins against Bad AI.