Getting Into Impacted Programs as a Sophomore Undeclared

I made a huge mistake of putting my first and secondary choice major as the two most difficult majors to get accepted in my university. This was in engineering and now that I look back I could’ve gotten into many of the other engineering majors had I put them as my secondary. Without looking closely I accepted my admission without realizing I was put as undeclared major. At this point should I be looking to transfer for my major or try to get into the impacted major. I completed as many prerequisites as possible for my major even though I was undeclared.