Solution to the Splash paint code challenge