New two-way data structure for the board
Optimizations