Rename getOppositeDirection to getOppositeDirection.js