moved ball reset function to a more logical place
modified input requests to use public variables