bug fiexed: iterative deepening