rewriten to use scoreboard, WAW hazards and correct scoreboard on completing BB