Mathematical Psychology of War