compiles but I suspect there is a problem with insertion of warriors