Zendaya wore wigs and played different characters to try and motivate herself to workout