code style fix
move definitions to .cpp file
rename {_last,}_score