adidng seperate functions to send moves