Converted existing board and tile code to classes