Updated basic example with simple area collision detection