❔ Is there a way to make this more cleaner? - C#