Console auto closes instantly when i run the program - C#