Sprite index selection made clearer

indexX and indexY have been renamed to numColumnsRight and numRowsDown for increased readability. Also added some more comments explaining how they work.