Implements lives, some global configuration and HUD
also some minor changes
Forgot to add new files in previous commit