Made some functions "public"
added code to make sure that the computer's second turn is never frivilous