Also try draining the pineapple more completely next time and baking for longer. If the top of the cakes were getting dark but a toothpick inserted into the center doesnt come out clean, you can cover the cakes with foil. This will allow them to finish baking without turning too dark. You can try cubing your cake layers and toasting them on a baking sheet to help make them less gummy.