Eliminated some duplicate code by abstracting out card space.