Makemove castling and promotions

Fixed movelist sorting bug, lots of other bugs