Fixed millions of bugs

added “var” to data on assign and pay controllers
added “bought” attribute to grocery_controller