_valuePieces() function
Find the value of all the pieces belonging to the given player.
Arguments
pBoard
pointer to the board stack
Return value
value
Notes
Positive value is good for this player. The value can also be negative, if the player occupies tiles next to free corner, which makes it easier for the opponent to get to this corner.