Implement code clear and set timeout for player