implemented timer and scoring mechanism