remove unnecessary board class
refactor client side logic into multiple files