using the function of time every twenty seconds is not good, it has to be by variable
Develop games in your browser. Powerful, performant & highly capable.
you could add to a variable every second until it hits 20 but I feel like this is accomplishing the same thing.