Progress 1

In progress of cleaning...
Not working currently
Progress 2

Code is more readable.

In progress of fixing image loading
Progress 3

Code is mostly cleaned.
But it cannot read tiff file, thus not showing the button image.
May need optimization in finding equal pairs