working on game board collision logic
refactoring. using switch case logic