Updated, there was a bug where you could move the top left piece when it wasn't supposed to move.

I'd have to clean the coding up quite a big before I post it in the codebank