A cleaned up version of my first chess program.