fixed black pawn condition to else if