Refactored board parser