added a separate method for playing