To fix a flooded engine, follow these steps:
Remove the spark plug
Pull the starter cord several times to clear out the excess fuel
Clean or replace the spark plug
Reinstall the spark plug
Start the chainsaw as usual