Added methods in Player and added a timer which refreshes the UI every sec.