Physical crowds and psychological crowds: applying self-categorization theory to computer simulation of collective behaviour