fix a bug in the Block ctor
add hud and some more functionality. fix some logic.