p5.js 2D Game - Dynamic World with NPCs