solve minor bug model animation - no longer infinit loop when x = 0 and y = 0