Simplified tile handling a lot. Added TileBag class