As bananas ripen their starch breaks down into to sugar and they grow softer and easier to mash. The blacker the banana, the softer, and sweeter, and better it will be for baking.