Replace abs(int) with fabs(float) and include <cmath> in Ball.cpp.