A spider and an ant start at the opposing corners of a cube. Every minute, the spider and ant choose one of the three possible directions independently and uniformly at random to move in. Afterwards, they travel simultaneously. The spider catches the ant if they move along the same edge while travelling at the end of the minute. Find the expected number of minutes until the spider catches the ant.