outling game loop in gameview