added method in Interface of playercontroller