creating new class for tilemap
fixed something