Having issues with the Serial Monitor needing to be opened for my entire code to work

Check the syntax of the line(s) you removed. It looks like you have an extra { somewhere.