Retaking college classes / sophomore vs. junior transfer

It will look like grade-grubbing or slacking, particularly if you came in with 5 scores (AP) and A grades (college courses). Typical college frosh extracurriculars are not likely to be impressive enough to gain transfer admission to a super-selective school that takes few transfers, even if you earn a 4.0 GPA in a grade-grubbing or slacking schedule.

If you will be attending an affordable four year school with a good CS department, why not just commit to graduating from that school?