solve paint fill problem