Piece helpers to check player and/or type
Merge branch 'master' into castling