Abstracted creation of alphabet tiles, and added ability to add a function as a parameter