added loop to perfom gameplay