Added basic collision detection, momentum might not be conserved.