fixed bug with tiles, created fog