https://github.com/filipedeschamps/doom-fire-algorithm