add computerPlay function in UI