create deadwood function

fix bugs and start creating laying deadwood at end of game.