stopped opening unused file stream in idealcontroller

I tested to make sure the code compiles, but I was unsure how to properly test running the modified code.