re-added seperate iterative deepening function and moved id cube definition