guard finally working
added method for retrieving center of grid