added winner/loser function with game timer