changed 'for' on 'Q_FOREACH'
reformatted code
added to a class 'OGBall' some functions (GetX, GetY, IsValid)