added variable in oncreate that stores the score