implementation of touch handling and ball force