Working through the javascript queen attack game