added brick collision logic
update brick collision logic