Valley math teacher inspiring students wins free pizza for a year