Update functionality for healthpoints implemented

Healthpoint bar on player UI still needs.