simple evaluation counting pieces and negamax search function