Updated to change coodinates from a pair to ints