Press the tofu for 10 minutes. Cut into 1/2 inch cubes.
In a small bowl, mix together the molasses, soy sauce, lime juice, garlic, ginger, allspice and cinnamon together in a small bowl.
Add the tofu to the marinade and let marinade for 10 minutes. While the tofu is marinating, cut the pineapple.
To make beans and rice, combine the 5 ingredients in a skillet, and heat through. Set aside covered.
Place the tofu in a ceramic skillet, reserve the marinade. Cook the Tofu on medium-high heat for about 10 minutes, flipping once or twice to brown on multiple sides. Remove the tofu from the skillet and transfer it to a plate.
Add the pineapple to the skillet. Cook for about 3 minutes, flip and cook about 3 minutes more, until softened and lightly browned.
Return the tofu to the skillet and pour the sauce over the tofu and pineapple. Flip a few times to coat everything in the sauce.
To serve, add the rice and beans into bowls. Top with the tofu and pineapple. Serve.