renamed method to validMove