edge checks

replace them with blocks around maps later?