Got x and y mixed up, it seems to work now. I'm retarded