Writing Interactive Music For Video Games