Renamed variables for clarity.
Calculate weights based on distances of projectiles.
Player moving based on left, right, and up weights.
Slightly more intelligent player...