HiTEC. A connectionist model of the interaction between perception and action planning