added loadXYinDataset() and seperated allowedToMove into X and Y parts