Added code to test passed pawns and fix missing code for doubled pawns in white castle