Fixed AI value function