Created update helper class. Moved all update code from program into it.