updated play_controller.cpp