Cleaned code. Problems displaying score