fixed variable referencing, added newline

Changed all @head, @tail variables in Board class to correct syntax.
Also, added newline to end of line in compliance with EOL standards.