Interesting take on the theme with a familiar feeling from some old flash games. I really liked it.
I think it would be good to add some sort of warning before a square appears. It feels bad to have one suddenly appear on you and you lose.
Great work!