added e_direction enum
function magnetic border is not yet implemented