added new functionalities ans test for codebreaker