Refactores Board class to make more Ruby idiomatic.