Added predicates for checking the type of pieces.