add the flagging to the game view and modify not to able to clear because clear method's bug