Reading a level based on xml into a map for 2d games