modified block direction structure

added direction enum