Cannot make moves which result in check

Players can no longer make moves which result in them being in check. If they're already in check then all moves must result in them not being in check. If they're not in check then they can't make a move will will result in being a check, ie: kings can now be pinned and forks can occur.
Fix code analysis issues

Ran code analysis on the solution and fixed some issues. Nothing too major. The custome dictionary isn't working and I'm getting fed up with it.