working weighting and some simple tile placements