Found an extrmely inefficient solution to XorBoard problem