this code is only halfway thorough so there are bugs... but its a initial step towards creating a maping thing in the code