I´m about to create a simple game, but the game-loop isn´t working yet. The while-loop does not break ,if I call the end_game function and keeps printing 'a'. I realy could not figure out what´s wrong with it. Thank you guys.
var game_status = true;
var end_game = function end_game(){
                    game_status = false;
                    return game_status;
                    };
var game_loop = function game_loop(game_status, end_game){
                  while(game_status == true){
                        console.log('a');
                        end_game();
                  }
              };
function call_gameloop(){
    game_loop(game_status,end_game);
};<div id = 'play_field' onclick='call_gameloop();'></div> 
    