Clear function added

Controller have the command_clear case
Data has clear arraylist function
Logic has clear function