adding warrior constructor