add tips function and enter room logic