added color check to whitepawn