changed obstacle constructor again