restart and menu buttons implementation
optimizes check equal function
add lock
add 4th block