Grid filling with creatures code