Update FlashCards.php

updated foreach loop