Implemented function that converts an index to chess coordinates