http://www.gamedev.net/reference/programming/features/chess1/