ex 12.4.18 - evaluate chess material advantage using pointer to walk the board