CS110 Final homework: War Game