THIS IS THE FINAL CODE BEFORE COMPETITON