added division routine in preparation for ghost AI