Code is long and retarded and I need to make it better