Created generating method and created basic piece classes