Refactored parser to return array from getCaptureAndProtectiveMoves