Refactored BoardState.cs

small modifications to some variables, replaced redundant code with
loops. Replaced old RowA, RowB, RowC code with references to only the
array.