Scary movie

send help!!! i watched this movie in like 4th grade so im not sure what year exactly, and i only remember these 2 scenes, id say 2008 or ealier but im looking for a scary movie were this group of people get kidanpped by this guy and he forces them to do things , for example stand on a wall and whoever fell off first got shot. i also remember the end , the girl that won or escaped was on a skytram and then she realizes its going to the same place she just escaped from