Cookie Clicker fixes

made pretty much all variables self. and changed the functions to be
methods.