Added Retreat Weights to Behaviors

Can use these to set how willing the bot is to retreat. Also changed the
name of function action() to function attackWeight()