removed the clear screen to use move(0,0) since the screen automatically gets cleared in the process.