update controller.js for normal play game