changed array init and home cursor after cls