Optimized evaluation function

Optimized evaluation function by storing analyzed board