N*1.FINAL.7 Finished switch case implementation. Everuthing seems to work right. TODO : Code improvement and optimization & implement the simple optimization method (without max or min)