removed trailing spaces
refactored neighbours function
trying to commit after neighbours refactoring