Added collision for the moving object