Completed getCompetitors function in controller.py.