Game strategy matlab