A 3x2 flag is divided into six squares. Each square is to be coloured green or blue, so that every square shares at least one edge with another square of the same colour. In how many ways can this be done?