small cleanup to merlin.c, it is very similar to simon.c
I want to redo the merlin layout later, make it more similar/appealing.