Oh and the coding is something like this:
game autonauts() {
playGame();
if(player.isBored()) {
doSomething();
}