Major refactoring

Refactoring of how pieces work was done. This is all in the attempt to
get the king to finally move properly...