I redid it this time with brute force The current strategy is this: 1. For each power level, test when the player would intersect the perfect spot 2. Find the corresponding y value 3. Pick the best y value of all of the power levels still could be improved