- calculating cell x,y pos
- renamed tileindex to flat tile index
- printing more info in test