Trail implementation
Trail work done, just a quick commit
Trail algorithm improved, critical engine bug fix