Added auto-position calculation. Fixed cell numbering (wasn't working correctly). Some input positioning tweaks to ensure square cells.