method CheckIfCellIsInMatrix - rename to CheckIfCellIsValid