Rewrite BlockFactory by using Vector, Terrain bug fix.