Resorted to integer representation of board.