this function checks for the current word if it can be placed horizontally or not x -> it represent index of row y -> it represent index of column currentWord -> it represent the current word in word array
source not stored for this graph (policy: none)