code cleaning for puzzle trackball

code cleaning