Changed all files to use .x and .y instead of [0] and [1] when possible.