Remove anonymous function from tick and replace with gameLoop function.