Well, I'm assuming it's the bottom portion of the code you posted that's the problem? The first thing I see is a variable problem here:
$chosen_team_home = $POST['chosen_team_home[$counter]'];
This isn't going to parse the counter variable because of the single quotes. It's also the incorrect way of using it since the form you're using makes that an array (default by the use of brackets). It should probably look more like this:
$chosen_team_home = $POST['chosen_team_home'][$counter];
You may want to try echoing instead of writing just for debugging purposes. Echo a static line to make sure it's actually hitting that point of the script. If that's ok, echo the chosen team home variable to make sure it's parsing. Once you see all of your variables are fine, try to write.