Added more code to paint bucket algorithm, but it doesn't really work yet.