added psuedocode to code combat