Cleaned up code and reinstated use of simpler (aggregate) lookahead function as seems to outperform alpha beta pruning.