Improved tile selection window and cleaned up Firebase