fixed sprite number display problem, added resource gathering