add direction to all moving objects