Refactored display of board working. Calculation of sparse representation of walls added.