Renamed moveBall to moveElem for the sake of OOP