Fixed bugs! (In the match algorithm)

-Display bug caused by dragging the tile off the edge of the screen, which can only occur on PC
-much more importantly, bug which removed the wrong matches from the match array, causing miscounts and crashes.