S9DOF Program Written but buggy