It looks like there might be an error in the PHP starter kit. Specifically the calculation of the
angleRad in Entity.php in the
getClosestCoordinateTo function. It currently reads:
$angleRad = $this->getAngleTo($this);
but should read (I think):
$angleRad = $this->getAngleTo($target);
Not sure if the file is the same on the halite site, but I think this is accounting for some weird behavior in my php bots.