Implement an output gate, so that it can automatically insert Abort and choose the best score, by a simple step by step simulation. Sometimes my strategy can be poor and passes turns in vain (e.g., falling rocks eventually closes the way to the door).

Also, this output gate should be the place to handle SIGINT.