Where are you located in the world?
Can you get photos of his poop?
I'd stop feeding the beans and rice, stick with your commercial poultry feed.
Give him some beef liver or eggs as a treat a few times a week to boost his protein.
If you can, get some Poultry Cell and direct dose him at 1cc...