added seeking for resources, the coords are flipped at the moment