Add cursor sprite. Begin to refunc code