An attempt at a general-purpose AI to beat the Javascript Warrior game