Added missing "}" to manageTiles().
A bracket was missing at the end of the KEY_Z if statement. This has been fixed.