Fixed the time problem. Two reason: 1. cannot make some operation on a list while iterating over it. 2. domain of variables