What variable(s) controls that action? Try debugging the code by adding println statements that print out the values of all the variables used when they are changed and used.

Could you make a...