Error Fixed : Sliding Up problem without changing names | Improved : Readability of Code