Code from my third year group project, Sports Competition Online Organiser Tool (SCOOT)