Fixed typo after refactoring
Changed how array is accessed to be correct for programming language used
Made efforts to remove many hardcoded values