Removed some words from bad words list

remove some bad words and shifted some function brackets and put code that was inside the function outside because it was supposed to call that function.