Look up gerrymandering. Also, there's a tutorial.