if statement of snowflakes was turned into a func