Refactoring tile clicked logic in board view