Refactored isLegalMoveBISHOP, updated isLegalMoveQUEEN, commented and changed name of function isCheck to moveCausesCheck, implemented getAllPieces, canBlockAttackFromBishop and canBlockAttackFromQueen.