Fixed position calculation

Now each ball falls smoothly and to the right position.