a model of simple balls' collision