Fixed a bug where we add random tile without moving.

Also added gameover detection.