i suppose you would load the map into a 2d array and then track the position of the player as an index in the array. create a B at this index when needed. you need to create a whole new 2d array with the B in it because you cannot modify an existing array. use the existing array as input to some method that generates a new one.
them good ole boys were drinking whiskey and rye singin' this'll be the day that I die. Drink tiny ad.
a bit of art, as a gift, that will fit in a stocking