Text this: Simulate and Analyze the Effect of the Magnetic System on the Electron Oscillatory Motion and the Formation of the Free Electron Laser Beam