Using the model, view and controller design pattern for games