so I wrote the following code and it compiles just fine but it only runs the code in my first case, all other cases just get completely ignored and I can not figure out why that