Modified removeTodo with splice function, passed index from function call and changed splice arguments to (index,1)