Cracked the code!

Of morris UCL! Now need to make it more elegant...