The secret to cooking good rice is to soak it in water (even 5 minutes will do) and then rinse it to remove the excess starch. Then add fresh water and cook it. Don’t take the lid off the pan so the steam cooks it properly. A rice cooker will simplify this process but all you really need is a pan with a lid.