refactored initialization code and added skeleton code for board location