Added device motion handling
Added simple scoring