minmax search terminates properly at any depth now