So, legalmoves() is done for all pieces...

we just need to add piece capturing and the ai now...
By the way, this is probably my largest commit so far...