reorganized code to make more logical sense.  initial version of computer opponent