function recalculateGame() introduced