a basic max search with depth 2