added support for line elimination and for game restarting