Need help with loops and switches

@daniel_dim_15, stop cross-posting. This is your second warning. Threads merged.