Changed location type to int (probably will change back to float later for increased accuracy)