working game using arrows and reset using 'r'