optimized algorithm for selecting when to rest. created assassins for top competition.