added a function to deal with user in kitchen and fixed a bug