Writing Interactive Music for Video Games