def testInBox(player): if player.counter % 100 == 0: if goalTran.goalieInBox(player): print "in" else: print "out" return player.stay()