added listener to make it move