gave constants better names. Simplified and improved performance of Board code