public void addCommand(Command command){
		List<Command> previousCommands = new ArrayList<Command>();
		if(command.isSameCommand()){
			commands.get(commands.size()-1).copyCommand(command);
		}
		for(Command com: commands){
			if(command.compareCommandTo(com)==1){
				previousCommands.add(com);
			}
		}
		commands.removeAll(previousCommands);
		commands.add(command);
	}