I figured out why the enderdragon was so difficulty for me to beat
"If you go beyond the "island" in the End, the Ender Dragon will constantly attack you instead of circling around before striking." - Minecraft wiki
Thats it didn't turn away when i hit it, i think i'm going to make nano armor before trying again.