simplified
removing duplicated fields and code
integrating King resources
paints background