Added iteration, wait and gameFinished functions