Fixing attack/eating logic. Fixed query details as well.