distribute function fixed, game functional, output to console.log