Changed algorithm so it calculates all possible sequences instead of just a random one