Refactor drawClouds() into multiple functions