Fixed a few small bugs that could cause bigger errors. Made it so that flagging after solving a cell would move the mouse away, and fixed a boolean value that would return if anything was solved with the matrix rather than continuing and making a guess.