created the method play