I need help with making a Prediction system for a tower defense game

I have found the solution already, thanks everyone who tried to help me