The squares of a 3×3 board are randomly coloured black or white. Let W be the number of white squares and B the number of black squares. The expected value of |B−W| can be expressed as ab where a and b are coprime positive integers. What is the value of a+b?