math.random
fix usage of `math.random` in various places to provide both a minimum and a maximum number, instead of just maximum. also renamed some files very slightly.
move several functions into the api. fix root growth directions. clean up root and grass growth code.