Got pointer mapping to squares working properly