apply firebase sample - tetris