Fix off-by-one in GameUtils.apply()