add auto restart, add punishment for right, and fix bug, add nacl