fixed issue

a issue i created when beautifying the code, if you clicked a bomb, after alerting "you lose" it ran the regular "nextToBombCheck".

i also reformatted the box-click handler function.