Merge init to gameLoop