Added trail animation, added toGrid function