Added freeing tree, tested with 100x100 board