Solved the problems in Program.cs, The program now works perfectly, only need to make it easier to read, so I am going to add some comments later.