convert some objects to use prototypes
convert Board object to use prototype