Alliance ranking not working properly