Update evaluate.cpp

fix a big bug in piece type checking.