Renaming some variables and making the price algorithm

Signed-off-by: EvilOzzir <evilozzir@gmail.com>