Solution of [jsWarrior](http://jswarrior.fusioncharts.com/) game