Cooking it at the right temperature and time. If overcooked it becomes soggy so ensure you check on it often. Take it off the heat once fork tender and you can run it under cold water after draining the hot water. This stops it from cooking further with retained heat.