added score, life and made width dynamic