Fixed board's value calculation process, so that it now calculates all x_i correctly.