Refactoring
[To do] fix undo method after flood fill algorith