Game main looper is defined.