Simple implementation for swap, update, plug

plug() just replaces empty squares with new ones.
Made a temporary working implementation for checkMatch().
Added a simple testing main().