changed paint and added paintSolved funtion
some changes