implemented a simple depth-limited ai