315. Used an int to swap pointer, some more warnings but it works