Get captures and king moves working. Also, add some utility methods and more tests.