implemented better detection of wood blocks