improvements on staticEval function for alpha-beta pruning