Separated game into model and view