Changed all vector .at() calls to operator[]