You could save it in a hashmap. Like: ConcurrentHashMap<Location, Boolean> PowerMap = new ConcurrentHashMap<Location, Boolean>(89) or something like that. There are tons of guides online of how to use Hashmaps/Hashtables/ConcurrentHashMaps