Moved legal move implementations into the pieces. Bit of refactoring.