Year 2 inputting algorithms and debugging