psuedo code for gatherer kill method