changed clear screen every frame to clear screen once and reset cursor position