added translate methods and replaced swap operations with them because swapping cells is unreadable.