Made max time configurable, added stalematecheckin to AI