This plays a very modest game, but was fun to code - a bit of a work-in-progress.
To castle, move the king two squares to the right (king-side) or the left (queen-side)