So basically when it hits a barrier it goes in a new direction.

But also I want it to go in random directions... Now thinking of it I could use math.Random(directions)

But how do I make it go into a new Direction when it hits a barrier?