The last Gem should end the level, but it seems its possible to get the last gem and still not move on,