Added AI code to look ahead further than the current turn.