//logic check after moving - checks player inventory //checks for hazards, then updates render public InGameRenderInfo moveCheck() { //ends game if player runs out of gold if (player.getGold() < 0) { endGame(1); } //ends game if player runs out of arrows if (player.getNumOfArrows() <= 0) { endGame(2); } //checks for hazards and acts accordingly encounterHazard(map.encounterHazard()); //updates and returns render info updateRender(); return(render); }