Refactored neighbouring mines logic into separate class and added state model for interface buttons