implemented second player updation and some cleanup of code