Better way is to calculate the score based on the location of staircase and turning of the staircase (clockwise/anti-clockwise)
Staircase ---------------------------------------- Score
South West, clockwise --------------------------10
South West, anti-clockwise----------------------9
South, clockwise-----------------------------------8
South, anti-clockwise-----------------------------7
West, clockwise------------------------------------6
West turning anti-clockwise--------------------5
North West / South East------------------------4
North / East / North East-----------------------3