Initalized buttons and created a listener for tile press