forked from: forked from: Mr Grass, The grass movement algorithm

