Remove old code
Modified moveToPosition, works better now but still needs some fixes
Update moveToPosition method