Completed milestone6 : Implemented timer, Detected the end of the game