
Each fly has its own index that allows it to be identified in the event of a collision in order to act accordingly. In this case, when it is hit, it changes color and is placed at the top of the screen ordered by its index.
https://github.com/drmortalwombat/oscar64