implemented some graveyard logic