added pipes and collison