I have a function with different timeout() call for a game in javascript. However I\'d like to add some conditions to those timeout. For instance, the line :