this is my code for project 3, story of a war king