Implementation of famous snake game in QML