added max depth for larger boards