Tested getAllPieces and canBlockAttackByBishop and fixed reference bugs.