Minor adjustments

Minor adjustments such as spell checking and removing unnecessary code.
Also fixed the mapping between logical and graphical coordinates for the
tiles.