Basic chess-playing logic implemented

The pieces still don't know how they can move, but most of the rest of the
requirements are there for a game.