added api for setting game speed