Refactored Board component