Added hp bar and other functions