Placing getansisocketsend and getsocket into ctl object, first implementation of gotoxy, and wrongly calling writeln and write