Making the board generic. not fixed to a size of 3