added method for calculating direction between two positions
now checking whether moving a chesspiece would make the king in chess