For loops correction
Still a bug on line 18 in queen.js due to Vertex.js