Finally finished buttons handling.
From now a puzzle is represented by a separate class Puzzle and it contains an array of buttons.
Closes #64