checkSuicideXDirection and checkSuicideYDirection