Fixes #23 - intelligence algorithm