Version 3: addition of health and score display