Optimal Final

Removed redundant line. Optimal is done thanks for being patient. Sorry alot of it was due to overthinging the project.