Code for resit of Gizmoball project