BoardLocation.java:
if-else to ternary