add complete userAction() function for user action game testing