Refactored move generator into captures / non-captures.